package com.axxc.jpa.pattendegign.adapter;

/**
 * @ClassName Adapter
 * @Description //TODO 对象适配器模式,实现谁就适配为谁,通过组合来实现适配器功能。可用性高
 * @author xxc
 * @data 2018年9月4日下午10:21:35
 * @see {@link http://gitee.com/biuabiu/ }
 */
public class Ps2ObjectAdapter<T extends Usb> implements Ps2 {

	private T t;

	public Ps2ObjectAdapter(T t) {
		super();
		this.t = t;
	}

	@Override
	public void isPs2() {
		t.isUsb();
	}

}
